package com.example.carbonalgorithm.common.config;


import org.springframework.beans.factory.InitializingBean;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * 初始化
 */
@Component
public class InitServlet implements InitializingBean {
//    @Autowired
//    private SysMenuDao menuDao;


    public void afterPropertiesSet() {
        //初始化
        //缓存菜单
        Thread ttt = new Thread(() -> {
            try {
//                LoginUtil.menuList=menuDao.findList(new SysMenu());
            } catch (Exception e) {
                e.printStackTrace();
            }
        });
        ttt.setDaemon(true);
        ttt.start();
    }


}
